package com.samuel.blog.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.samuel.blog.utils.StringUtils;

public class AuthorEntity implements Serializable {

	private static final long serialVersionUID = 646125238882576695L;

	private String authorId;
	private Date createDate;
	private Date modiftyDate;
	
	
	private String userName; // 博客名称
	private String password; // 密码
	private String realName; // 真实名称
	private String phone; //手机号码
	private String loginIp; // 登录IP地址
	private int grade; //博客等级
	private int resource; // 来源 0: 本网站注册 1:微博 2:QQ 3:微信 4:GitHub
	private Integer deleteStatus; // 删除 0: 不删除 1:删除
	
	private List<RoleEntity> roleList;
	
	public String getAuthorId() {
		return authorId;
	}
	public void setAuthorId(String authorId) {
		this.authorId = authorId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getModiftyDate() {
		return modiftyDate;
	}
	public void setModiftyDate(Date modiftyDate) {
		this.modiftyDate = modiftyDate;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		userName = StringUtils.isStr(userName);
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		password = StringUtils.isStr(password);
		this.password = password;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		realName = StringUtils.isStr(realName);
		this.realName = realName;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		phone = StringUtils.isStr(phone);
		this.phone = phone;
	}
	public int getGrade() {
		return grade;
	}
	public void setGrade(int grade) {
		this.grade = grade;
	}
	public int getResource() {
		return resource;
	}
	public void setResource(int resource) {
		this.resource = resource;
	}
	public Integer getDeleteStatus() {
		return deleteStatus;
	}
	public void setDeleteStatus(Integer deleteStatus) {
		this.deleteStatus = deleteStatus;
	}
	public String getLoginIp() {
		return loginIp;
	}
	public void setLoginIp(String loginIp) {
		loginIp = StringUtils.isStr(loginIp);
		this.loginIp = loginIp;
	}
	public List<RoleEntity> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<RoleEntity> roleList) {
		this.roleList = roleList;
	}
}
